﻿using Godot;
using Turnable.Functional;

namespace GodotUtilities
{
    public class NodeUtilities
    {
        public static Maybe<T> GetNodeMaybe<T>(Node rootNode, NodePath path) where T : class
        {
            Maybe<T> maybeNode = rootNode.GetNode<T>(path);

            return maybeNode;
        }
    }
}
